package main

import "fmt"

func sliceM1() {
	slice1 := []int{1, 3, 5, 7, 9}
	fmt.Println(slice1)

	newSlice1 := slice1[0:2]
	fmt.Println(newSlice1)

	newSlice5 := slice1[:2]
	fmt.Println(newSlice5)

	newSlice2 := slice1[0:]
	fmt.Println(newSlice2)

	newSlice3 := slice1[1:]
	fmt.Println(newSlice3)

	newSlice4 := slice1[1:3]
	fmt.Println(newSlice4)
}

func main() {
	sliceM1()

}
